import service from "@/utils/request.js";

export const contestApi = {
    list() {
        return service.get('contest/list');
    },
    selectByPage(contestQuery){
        return service.get('/contest/selectByPage',{params:contestQuery});
    },
    deleteOne(id){
        return service.put(`/contest/deleteOne/${id}`);
    },
    deleteAll(ids) {
        return service.put(`/contest/deleteAll/${ids}`);
    },
    add(contest) {
        return service.put(`/contest/add`, contest)
    },
    update(contest){
        return service.put('/contest/update',contest)
    },
    getById(id){
        return service.get(`contest/getById/${id}`)
    }
}